package com.powerunion.datacollection.persistence.db.jdbc.base;

import java.util.*;
/**
 * 访问方式创建工厂类
 * @author qyw
 *
 */
public class AccessMannerFactory {
  public static IAccessManner getAccessManner(String sql) {
    return new MannerImp(null, sql);
  }

  public static IAccessManner getAccessManner(String sql, List sqlParameters) {
    return new MannerImp(sqlParameters, sql);
  }

  public static IAccessManner getAccessManner(String sql, ArrayList batchValues) {
    return new BatchManerImp(sql, batchValues);
  }
}
